import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core'

@Component({
    selector: 'img-view',
    templateUrl: './img-view.component.html',
    styleUrls: ['./img-view.component.scss']
})
export class ImgViewComponent {


    @Input() Photos: any;
    @Input() showIndex: any;
    @Output() close = new EventEmitter<any>()
    @Output() show = new EventEmitter<any>()

    ngOnInit(){}

    beforeChange(event) {
        // console.log('slide ' + event.from + ' to ' + event.to);
    }

    afterChange(event) {
        // console.log('slide to ' + event);
    }

    showView(){
        this.show.emit();
    }

    closeView(){
        this.close.emit();
    }
}